package com.jingzhe.controller.login.vo;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 登录请求参数类
 * @author wanghj
 *
 */
public class LoginReqVo {
    /**
     * 用户名
     */
    @NotBlank(message="用户名不能为空")
    private String userName;
    
    /**
     * 密码
     */
    @NotBlank(message="密码不能为空")
    private String psd;
    
    /**
     * 下次是否自动登录
     * true:是
     * false:否
     */
    private Boolean rememberMe;

    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return the psd
     */
    public String getPsd() {
        return psd;
    }

    /**
     * @param psd the psd to set
     */
    public void setPsd(String psd) {
        this.psd = psd;
    }

    /**
     * @return the rememberMe
     */
    public Boolean getRememberMe() {
        return rememberMe;
    }

    /**
     * @param rememberMe the rememberMe to set
     */
    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "LoginReqVo [userName=" + userName + ", psd=" + psd
                + ", rememberMe=" + rememberMe + ", getUserName()="
                + getUserName() + ", getPsd()=" + getPsd()
                + ", getRememberMe()=" + getRememberMe() + ", getClass()="
                + getClass() + ", hashCode()=" + hashCode() + ", toString()="
                + super.toString() + "]";
    }

}
